<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<c:forEach var="entity" items="${entities}">
	<div id="blog-div">
		<article id="blog-post">
			<header class="blog-title">${entity.title}</header>
			<p class="content-time">${entity.postedDate}</p>
			<div class="blog-content">${entity.content}</div>
		</article>
	</div>
	<div class="show-tags">
		<img class="tag-img" src="images/tag_orange.png" alt="tag" />
		<c:forEach var="tag" items="${tags}">
			<a class="tag-links"
				href="javascript:fetchBlogPostByTag('#fetch-blog-posts', ${tag.id})"><c:out
					value="${tag.tag}" /></a> | 
		</c:forEach>
	</div>
	<div class="blog-info">
		<p class="content-time">Latest Update: ${entity.formattedModifiedDate}</p>
	</div>
	<div class="social-share">
		<span class='st_email_large' displayText='Email'></span>
		<span class='st_facebook_large' displayText='Facebook'></span>
		<span class='st_linkedin_large' displayText='LinkedIn'></span>
		<span class='st_googleplus_large' displayText='Google +'></span>
		<span class='st_twitter_large' displayText='Tweet'></span>
	</div>
</c:forEach>
